package com.bd.wechat.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bd.wechat.entity.ShopFranchise;
import com.bd.wechat.entity.request.FranchiseApplyForRequest;
import com.bd.wechat.entity.request.FranchiseApproveRequest;
import com.bd.wechat.entity.request.MyRecordFranchisePageRequest;
import com.bd.wechat.entity.request.ShopFranchisePageRequest;
import com.bd.wechat.entity.response.ShopFranchiseDetailResponse;
import com.bd.wechat.entity.response.ShopFranchiseMyRecordResponse;

/**
 * <p>
 * 店铺加盟 服务类
 * </p>
 *
 * @author linhs
 * @since 2024-11-15
 */
public interface ShopFranchiseService extends IService<ShopFranchise> {

    /**
     * 查找我的提交记录
     *
     * @param pageNum
     * @param pageSize
     * @param pageRequest
     * @return
     */
    Page<ShopFranchiseMyRecordResponse> pageMyRecord(Integer pageNum, Integer pageSize, MyRecordFranchisePageRequest pageRequest);

    /**
     * 发起申请
     *
     * @param applyForRequest
     */
    void applyFor(FranchiseApplyForRequest applyForRequest);

    Page<ShopFranchise> pageShopFranchise(Integer pageNum, Integer pageSize, ShopFranchisePageRequest pageRequest);

    ShopFranchiseDetailResponse detail(Long franchiseId);

    void approve(FranchiseApproveRequest request);
}
